package com.fitness.fitness.convertor;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fitness.fitness.modal.course.dto.CoursePlanDto;
import com.fitness.fitness.modal.course.entity.CoursePlan;
import com.fitness.fitness.modal.course.vo.CoursePlanVO;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface CoursePlanConvertor {
    CoursePlanVO entity2Vo(CoursePlan result);

    Page<CoursePlanVO> entity2Vo(Page<CoursePlan> result);

    List<CoursePlanVO> entities2Vos(List<CoursePlan> result);

    CoursePlan dto2Entity(CoursePlanDto equipmentDto);

    List<CoursePlan> dtos2Entities(List<CoursePlanDto> planDtos);
}
